<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.common.SyslogUtility Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1common.html">common</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html">SyslogUtility</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsyslog4cj_1_1common_1_1SyslogUtility-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.common.SyslogUtility Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a99579389dbbdcb5437d25c62c57a9a29"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#a99579389dbbdcb5437d25c62c57a9a29">getFacility</a> (String name)</td></tr>
<tr class="separator:a99579389dbbdcb5437d25c62c57a9a29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a607c70d06b9ac4f2a0bfc84f73dc635a"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#a607c70d06b9ac4f2a0bfc84f73dc635a">getInetAddress</a> (String host):IPAddress</td></tr>
<tr class="separator:a607c70d06b9ac4f2a0bfc84f73dc635a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfc1afb06cd322122c8a2c0f133bbb39"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#abfc1afb06cd322122c8a2c0f133bbb39">getLocalName</a> ():String</td></tr>
<tr class="separator:abfc1afb06cd322122c8a2c0f133bbb39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad974e61140b0f61f3d084128acb79ab0"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#ad974e61140b0f61f3d084128acb79ab0">getFacilityString</a> (Int64 syslogFacility):String</td></tr>
<tr class="separator:ad974e61140b0f61f3d084128acb79ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d0cf39b8aefb0424082561e9265f796"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#a0d0cf39b8aefb0424082561e9265f796">getLevel</a> (String levelName)</td></tr>
<tr class="separator:a0d0cf39b8aefb0424082561e9265f796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21be9c0c9b544e4aa07127a21a3c5853"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#a21be9c0c9b544e4aa07127a21a3c5853">getLevelString</a> (Int64 level)</td></tr>
<tr class="separator:a21be9c0c9b544e4aa07127a21a3c5853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaec535ddf79a7d851a17865a628901c5"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1common_1_1SyslogUtility.html#aaec535ddf79a7d851a17865a628901c5">getIPAddress</a> (SocketAddress socketAddress)</td></tr>
<tr class="separator:aaec535ddf79a7d851a17865a628901c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>提供了一些通用的工具方法。 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a99579389dbbdcb5437d25c62c57a9a29" name="a99579389dbbdcb5437d25c62c57a9a29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99579389dbbdcb5437d25c62c57a9a29">&#9670;&#160;</a></span>getFacility()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getFacility </td>
          <td>(</td>
          <td class="paramname"><em>name</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取facility值 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>facility名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>facility值 </dd></dl>

</div>
</div>
<a id="ad974e61140b0f61f3d084128acb79ab0" name="ad974e61140b0f61f3d084128acb79ab0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad974e61140b0f61f3d084128acb79ab0">&#9670;&#160;</a></span>getFacilityString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getFacilityString </td>
          <td>(</td>
          <td class="paramname"><em>syslogFacility</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取facility对应的字符串 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">syslogFacility</td><td>facility值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>facility字符串 </dd></dl>

</div>
</div>
<a id="a607c70d06b9ac4f2a0bfc84f73dc635a" name="a607c70d06b9ac4f2a0bfc84f73dc635a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a607c70d06b9ac4f2a0bfc84f73dc635a">&#9670;&#160;</a></span>getInetAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getInetAddress </td>
          <td>(</td>
          <td class="paramname"><em>host</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: IPAddress </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取指定主机的IP地址 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">host</td><td>主机名 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>IP地址 </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">SyslogRuntimeException</td><td>如果主机名无法解析 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aaec535ddf79a7d851a17865a628901c5" name="aaec535ddf79a7d851a17865a628901c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaec535ddf79a7d851a17865a628901c5">&#9670;&#160;</a></span>getIPAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getIPAddress </td>
          <td>(</td>
          <td class="paramname"><em>socketAddress</em>:&#160;</td>
          <td class="paramtype">SocketAddress</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取SocketAddress中的IP地址 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socketAddress</td><td>socket地址 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>IP地址 </dd></dl>

</div>
</div>
<a id="a0d0cf39b8aefb0424082561e9265f796" name="a0d0cf39b8aefb0424082561e9265f796"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d0cf39b8aefb0424082561e9265f796">&#9670;&#160;</a></span>getLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getLevel </td>
          <td>(</td>
          <td class="paramname"><em>levelName</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取日志级别对应的值 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">levelName</td><td>日志级别名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>日志级别值 </dd></dl>

</div>
</div>
<a id="a21be9c0c9b544e4aa07127a21a3c5853" name="a21be9c0c9b544e4aa07127a21a3c5853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21be9c0c9b544e4aa07127a21a3c5853">&#9670;&#160;</a></span>getLevelString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getLevelString </td>
          <td>(</td>
          <td class="paramname"><em>level</em>:&#160;</td>
          <td class="paramtype">Int64</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取日志级别对应的字符串 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">level</td><td>日志级别值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>日志级别字符串 </dd></dl>

</div>
</div>
<a id="abfc1afb06cd322122c8a2c0f133bbb39" name="abfc1afb06cd322122c8a2c0f133bbb39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfc1afb06cd322122c8a2c0f133bbb39">&#9670;&#160;</a></span>getLocalName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.common.SyslogUtility.getLocalName </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取本地主机名 </p><dl class="section return"><dt>Returns</dt><dd>本地主机名 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/common/<a class="el" href="syslog__utillity_8cj.html">syslog_utillity.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
